export default async ({ route, redirect, store }) => {
    await store.commit('userStore/getUserInfo')
    await store.commit('cartStore/getCartList')
    if (route.path === '/') {
        redirect('/layout/home')
    }
}